package entity;

public class OrderDetail {
    private Integer odid;

    private Integer oid;

    private String productId;

    private String productNum;

    public OrderDetail() {
    }

    public OrderDetail(Integer oid, String productId, String productNum) {
        this.oid = oid;
        this.productId = productId;
        this.productNum = productNum;
    }

    public Integer getOdid() {
        return odid;
    }

    public void setOdid(Integer odid) {
        this.odid = odid;
    }

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId == null ? null : productId.trim();
    }

    public String getProductNum() {
        return productNum;
    }

    public void setProductNum(String productNum) {
        this.productNum = productNum == null ? null : productNum.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", odid=").append(odid);
        sb.append(", oid=").append(oid);
        sb.append(", productId=").append(productId);
        sb.append(", productNum=").append(productNum);
        sb.append("]");
        return sb.toString();
    }
}